import request from '@/utils/request'

// 查询加工管理列表
export function listJiagong(query) {
  return request({
    url: '/seedlingSys/jiagong/list',
    method: 'get',
    params: query
  })
}

// 查询加工管理详细
export function getJiagong(jiaGongID) {
  return request({
    url: '/seedlingSys/jiagong/' + jiaGongID,
    method: 'get'
  })
}

// 新增加工管理
export function addJiagong(data) {
  return request({
    url: '/seedlingSys/jiagong',
    method: 'post',
    data: data
  })
}

// 修改加工管理
export function updateJiagong(data) {
  return request({
    url: '/seedlingSys/jiagong',
    method: 'put',
    data: data
  })
}

// 删除加工管理
export function delJiagong(jiaGongID) {
  return request({
    url: '/seedlingSys/jiagong/' + jiaGongID,
    method: 'delete'
  })
}
